<div class="page_title">
	<div class="left">
		<h3><{$xoops_pagetitle}></h3>
	</div>
	<div class="right">
		<ul>
			<li class="last"><a href="index.php">My Pjojects</a></li>
		</ul>
	</div>
	<div class="clear"></div>
</div>

<form name="my_project" class="simple_form" method="post" action="<{$smarty.server.PHP_SELF}>">
	<dl>
		<dt>Module Name</dt>
		<dd>
			<{$project->getVar('name')}> <{$project->getVar('version')}>
		</dd>
	</dl>
	<dl>
		<dt>Module Dir</dt>
		<dd>
			<{$project->getVar('dirname')}>
		</dd>
	</dl>
	<dl>
		<dt>Readme</dt>
		<dd>
			Primary: main field use to get one row data, usually be auto_increment op unique field<br />
			Order: default field use to sort data list
		</dd>
	</dl>
	<{foreach from=$tables item=table key=key}>
	<dl>
		<dt><{$table.name}><input type="hidden" name="tables[<{$key}>][name]" value="<{$table.name}>" /></dt>
		<dd>
			Primary
			<select name="tables[<{$key}>][primary]">
				<{foreach from=$table.fields item=field}>
				<option value="<{$field.name}>"><{$field.name}></option>
				<{/foreach}>
			</select>
			Order by
			<select name="tables[<{$key}>][order_by]">
				<{foreach from=$table.fields item=field}>
				<option value="<{$field.name}>"><{$field.name}></option>
				<{/foreach}>
			</select>
			<select name="tables[<{$key}>][order_type]">
				<option value="DESC">DESC</option>
				<option value="ASC">ASC</option>
			</select>
		</dd>
	</dl>
	<{/foreach}>
	<dl>
		<dt>&nbsp;</dt>
		<dd>
			<button type="submit">Create Prototype</button>
			<input type="hidden" name="op" value="step1" />
			<input type="hidden" name="pid" value="<{$smarty.get.pid}>" />
		</dd>
	</dl>
</form>
